import java.util.Scanner;

public class demo011 {
    public static void main(String[] args) {
        double t=0;
        Scanner scan = new Scanner(System.in);
        double[] arr=new double[4];
        for (int q=0;q<4;q++){
            System.out.println("请输入第"+(q+1)+"数");
            arr[q]=scan.nextDouble();
        }
        for (int i=0;i<4;i++){
            for(int j=0;j<4-1-i;j++){
                if (arr[j]<arr[j+1]){
                   t=arr[j];
                   arr[j]=arr[j+1];
                   arr[j+1]=t;
                }
            }
        }
        for (int k=0;k<4;k++){
            System.out.println(arr[k]);
        }

    }
}
